<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>更新进程界面</title>
     <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
    <script type="text/javascript">
    	//点击确认按钮,添加用户
			function closeWindow(){
    			process=document.getElementById("process").value;
    			//alert(process);
    			if(process==""){
					alert("未填写进程数值！");
					return;
				}
    			window.returnValue=process;
    			window.close();
    		}
    	function backWindow(){
    		window.returnValue=false;
    		window.close();
    	}
    	function check(){
    		var val = $('#process').val();
    		var reg = /^(?:0|[1-9][0-9]?|100)$/;
    		//alert(reg.test(val));
    		if(!reg.test(val)&&""!=val){
    			document.getElementById("id_display").style.display='block';	
    			$('#id_submit').attr('disabled',true);
    		}else if(reg.test(val)&&""!=val){
    			//$('#id_display').attr('display',none);
    			document.getElementById("id_display").style.display='none';
    			$('#id_submit').attr('disabled',false);
    		}else{
    			document.getElementById("id_display").style.display='block';
    			$('#id_submit').attr('disabled',true);
    		}
    	}
    </script>
  </head>
  
  <body>
  	<div style="width:100%; text-align: center; top:50px; height:70%; ">
    <input onmouseout="check();" type="text" id="process" style="position:relative; top:50px;left:10px;"/>
    <div style="display: block;" id="id_display">
    	 <label style="font-size: 12px; color: red;">(请填写100及以内整数)</label>
    </div>
    <br/>
    <input id="id_submit" disabled="disabled" type="button" value="确定" onclick="closeWindow();" style="position:absolute; top:106px;left:135px;"/>
  	<input type="button" value="返回" onclick="backWindow();" style="position:absolute; top:106px;left:190px;"/>
  	</div>
  </body>
</html>
